"""
@Project ：HD_project 
@File    ：new_time.py
@IDE     ：PyCharm 
@Author  ：靓仔
@Date    ：2023/11/27 0027 17:12 
"""
from datetime import datetime


def get_time_of_day():
    # 获取当前时间
    current_time = datetime.now()
    # 获取当前小时
    current_hour = current_time.hour
    # 判断是上午、下午还是晚上
    if 6 <= current_hour < 12:
        time_of_day = "上午"
    elif 12 <= current_hour < 18:
        time_of_day = "下午"
    else:
        time_of_day = "晚上"

    # 格式化当前时间
    formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")

    return f"年度计划汇总（专用）+ {formatted_time}-{time_of_day}"


def new_time():
    from datetime import datetime

    # 获取当前时间
    current_time = datetime.now()

    # 格式化为字符串，使用指定的格式
    formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
    return formatted_time

def get_temporary_plan():
    # 获取当前时间
    current_time = datetime.now()
    # 获取当前小时
    current_hour = current_time.hour
    # 判断是上午、下午还是晚上
    if 6 <= current_hour < 12:
        time_of_day = "上午"
    elif 12 <= current_hour < 18:
        time_of_day = "下午"
    else:
        time_of_day = "晚上"

    # 格式化当前时间
    formatted_time = "临时计划" + current_time.strftime("%Y-%m-%d %H:%M:%S") + "-" + time_of_day
    return formatted_time

def get_temporary_year_plan():
    # 获取当前时间
    current_time = datetime.now()
    # 获取当前小时
    current_hour = current_time.hour
    # 判断是上午、下午还是晚上
    if 6 <= current_hour < 12:
        time_of_day = "上午"
    elif 12 <= current_hour < 18:
        time_of_day = "下午"
    else:
        time_of_day = "晚上"

    # 格式化当前时间
    formatted_time = "年度计划" + current_time.strftime("%Y-%m-%d %H:%M:%S") + "-" + time_of_day
    return formatted_time

if __name__ == "__main__":
    # result = get_time_of_day()
    print("年度计划汇总（专用）" + get_time_of_day())
    # print(new_time())
    # print(result)
    print(545.64+283)
    print(4720/23*14)
    print(14*25)
    print(4720/23*14+14*25)
    print(325/25)
    print(726/30)